package com.ctshk.rpc.user.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *  用户消息通知listDTO
 * </p>
 *
 * @author 李新科
 * @date 2021/5/17 11:35
 */
@Data
@ApiModel
public class UserMessageListDTO implements Serializable {

    @ApiModelProperty(value="id")
    private Long id;

    @ApiModelProperty(value="标题")
    private String title;

    @ApiModelProperty(value="内容")
    private String content;

    @ApiModelProperty(value="是否已读,IsRead枚举类,1未读,2已读")
    private Integer isRead;

    @ApiModelProperty(value="时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value="订单id")
    private Long orderId;

    @ApiModelProperty(value="业务类型")
    private Integer businessType;
}
